Computer-assisted weaning program